raw_config = File.read(RAILS_ROOT + "/config/app_config.yml")
APP_CONFIG = YAML.load(raw_config)[RAILS_ENV].symbolize_keys

# fix show tables with haml (do not sanitize)
Irwi::Helpers::WikiPagesHelper.module_eval do
  def wiki_content( text )
    #sanitize( auto_link( Irwi.config.formatter.format( wiki_linkify( wiki_show_attachments(text) ) ) ) )
    auto_link( Irwi.config.formatter.format( wiki_linkify( wiki_show_attachments(text) ) ) )
  end
end
